<template>
    <div class="About" v-loading="loading">
        <!--       公共顶部-->
        <Top>
            <i class="el-icon-arrow-left back" slot="leftPart" @click="goback()"></i>
            <p class="title" slot="midPart">关于花艺学院</p>
        </Top>
        <div class="content">
            <h1>花娃·花艺学院</h1>
            <p class="version">{{infos.version}}</p>
            <fieldset class="noMore animated flipInX">
                <legend align="center" class="noMoreText">{{infos.title}}</legend>
            </fieldset>
            <div class="text">{{infos.description}}</div>
        </div>
        <!---->
        <div class="rights">{{infos.copyright}}</div>
    </div>
</template>

<script>
    //导入相关组件
    import Top from '@/components/smallCom/Top'
    export default {
        name: 'About',
        components: {
            Top,//顶部信息组件
        },
        created(){
            this.loading = true;
            this.Posthttp('/?method=flower.pub.about',{},(res)=>{
                this.loading = false;

                if(JSON.parse(res.bodyText).status == 1){
                    this.infos = JSON.parse(res.bodyText).data.info;
                }else{
                    this.$message.warning(JSON.parse(res.bodyText).msg); 
                }
            });
        },
        data () {
            return {
                loading:false,
                infos:{},//
            }
        },
        methods:{

        }
    }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
    .About{
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        padding-top: .8rem;
        overflow-y: auto;
        background-color: #fff;
        color: #333;
        /**/
        .content{
            padding: 1rem .5rem .5rem;
            text-align: center;
            h1{
                color: #de6940;
                font-size: .38rem;
                font-weight: 600;
            }
            .version{
                margin-top: .24rem;
                color: #666;
            }
            .noMore{
                margin-top: .9rem;
                border-top: 1px solid #333;
                .noMoreText{
                    color: #333;
                }
            }
            .text{
                font-size: .22rem;
                line-height: .5rem;
                margin-top: .4rem;
                text-align: justify;
            }
        }
        /**/
        .rights{
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: center;
            color: #999;
            font-size: .18rem;
            background-color: #fff;
            padding-bottom: .3rem;
        }
    }
</style>
